<script>
function checkform(){
	var team_one=$('select[name="team_one"]').val();
	var team_two=$('select[name="team_two"]').val();
	if(trim(team_one)=='' || trim(team_two)=='' || trim(team_two)==trim(team_one)){
		alert('必须选择比赛的两个球队,且不同选择相同的两个球队!');
		return false;
	}
	commonEffection.setLoading();
	$('#sencecForm').submit();
}
</script>
<style>
.current{
	background:repeat-x #FFFFFF bottom;
	text-decoration: underline;
}
</style>
<div class="frame_pmDiv">
    <div class="pmflDiv">
        <ul>
            <li><a href="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>index">球队管理</a></li>
            <li><a class="current" href="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>scence">球赛管理</a></li>
            <li><a href="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>bets">下注记录</a></li>
            <li><a href="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>exchange">兑换记录</a></li>
            <li><a href="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>gifts">礼品管理</a></li>
        </ul>
    </div>
    <div class="pmItemDiv">
         <form name="sencecForm" id="sencecForm" action="administrator<?=CHOSING_DE?>games<?=CHOSING_DE?>dosencec" method="post">
        <div>球队一：
            <select name="team_one" id="team_one">
                <option value="">请选择球队一</option>
                <?for($i=0;$i<count($this->teamsArray);$i++):?>
                <option value="<?=$this->teamsArray[$i]['id']?>"><?=$this->teamsArray[$i]['name']?></option>
                <?endfor;?>
            </select>
        </div>
        <div>球队二：
            <select name="team_two" id="team_two">
                <option value="">请选择球队二</option>
                <?for($i=0;$i<count($this->teamsArray);$i++):?>
                <option value="<?=$this->teamsArray[$i]['id']?>"><?=$this->teamsArray[$i]['name']?></option>
                <?endfor;?>
            </select>
        </div>
        <div>比分：<input type="text" name="score" id="score" />(请以比分形式结束比赛,如8:2,请务必正确输入)</div>
        <div><input type="checkbox" name="isend" id="isend" /><label for="isend">是否结束</label><br />注意:当编辑时标记结束,则系统会对下注会员进行积分统计,且此记录将不能被编辑,慎用.</div>
        <div>
            <input name="button2" type="button" class="iput" value="保 存"   onclick="checkform();" />
            <input name="button" type="button" class="iput" value="返 回" onclick="commonEffection.confirmBack();" />
        </div>
        </form>
    </div>
</div>